package com.youlu.campus.service.activity;

import com.youlu.campus.entity.ActivityRewardRule;
import com.youlu.campus.entity.VO.req.ActivityRewardRuleQueryVO;
import com.youlu.campus.entity.VO.req.CopyTaskRuleReq;
import org.springframework.data.domain.Page;

import java.util.List;

public interface ActivityRewardRuleService {

    Page<ActivityRewardRule> list(ActivityRewardRuleQueryVO req);


    ActivityRewardRule findOne(String id);

    boolean create(ActivityRewardRule req);

    boolean update(ActivityRewardRule req);

    boolean delete(String tenantId, String id);

    /**
     * 开始匹配奖励规则
     *
     * @param activityId
     * @param req
     * @return
     */
    ActivityRewardRule match(String activityId, String taskId, Boolean hasQa, Boolean hasOrg, ActivityRewardRule req);


    List<ActivityRewardRule> findByActivityId(String activityId);

    /**
     * copy获取邀请规则
     * @param copyTaskRuleReq
     */
    void doCopyActivityRewardRule(CopyTaskRuleReq copyTaskRuleReq);
}
